import Layout from '@/layout'

const orderRouter = {
  path: '/order',
  component: Layout,
  redirect: '/order/list',
  name: 'order',
  meta: {
    title: '订单管理',
    icon: 'documentation'
  },
  hidden: true,
  children: [
    {
      path: 'list',
      component: () => import('@/views/order/index'),
      name: 'OrderList',
      meta: { title: '订单管理', icon: 'list' }
    },
    {
      path: 'detail/:id',
      component: () => import('@/views/order/detail'),
      name: 'OrderDetail',
      meta: { title: '订单详情', noCache: true, activeMenu: '/order/list' },
      hidden: true
    }
  ]
}

export default orderRouter
